package com.ruoyi.activiti.service;

import com.ruoyi.activiti.domain.BizExpensesClaim;
import com.ruoyi.activiti.domain.BizLeave;
import com.ruoyi.activiti.domain.CheckTask;

import java.util.List;

/**
 * 请假Service接口
 * 
 * @author 一只闲鹿
 * @date 2020-11-29
 */
public interface IBizExpensesService
{
    /**
     * 查询请假
     *
     * @param id 请假ID
     * @return 请假
     */
    BizExpensesClaim selectBizLeaveById(Long id);
    BizExpensesClaim selectBizLeaveByInstanceId(String instanceId);

    /**
     * 查询请假列表
     *
     * @param bizExpensesClaim 请假
     * @return 请假集合
     */
    List<BizExpensesClaim> selectBizExpensesList(BizExpensesClaim bizExpensesClaim);

    /**
     * 新增请假
     *
     * @param bizLeave 请假
     * @return 结果
     */
    int insertBizLeave(BizExpensesClaim bizLeave);

    /**
     * 修改请假
     *
     * @param bizExpensesClaim 请假
     * @return 结果
     */
    int updateBizExpensesById(BizExpensesClaim bizExpensesClaim);
    void submitApply(Long id) throws Exception;
    void checkTask(CheckTask checkTask);
    CheckTask selectByInstanceId(CheckTask checkTask);
}
